Optimal. Leaf size=42 \[ \frac {\tan ^3(a+b x)}{48 b}+\frac {\tan (a+b x)}{8 b}-\frac {\cot (a+b x)}{16 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {4288, 2620, 270} \[ \frac {\tan ^3(a+b x)}{48 b}+\frac {\tan (a+b x)}{8 b}-\frac {\cot (a+b x)}{16 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 270
Rule 2620
Rule 4288
Rubi steps
\begin {align*} \int \csc ^4(2 a+2 b x) \sin ^2(a+b x) \, dx &=\frac {1}{16} \int \csc ^2(a+b x) \sec ^4(a+b x) \, dx\\ &=\frac {\operatorname {Subst}\left (\int \frac {\left (1+x^2\right )^2}{x^2} \, dx,x,\tan (a+b x)\right )}{16 b}\\ &=\frac {\operatorname {Subst}\left (\int \left (2+\frac {1}{x^2}+x^2\right ) \, dx,x,\tan (a+b x)\right )}{16 b}\\ &=-\frac {\cot (a+b x)}{16 b}+\frac {\tan (a+b x)}{8 b}+\frac {\tan ^3(a+b x)}{48 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 48, normalized size = 1.14 \[ \frac {5 \tan (a+b x)}{48 b}-\frac {\cot (a+b x)}{16 b}+\frac {\tan (a+b x) \sec ^2(a+b x)}{48 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.39, size = 43, normalized size = 1.02 \[ -\frac {8 \, \cos \left (b x + a\right )^{4} - 4 \, \cos \left (b x + a\right )^{2} - 1}{48 \, b \cos \left (b x + a\right )^{3} \sin \left (b x + a\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 2.26, size = 1034, normalized size = 24.62 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.22, size = 51, normalized size = 1.21 \[ \frac {\frac {1}{3 \sin \left (b x +a \right ) \cos \left (b x +a \right )^{3}}+\frac {4}{3 \sin \left (b x +a \right ) \cos \left (b x +a \right )}-\frac {8 \cot \left (b x +a \right )}{3}}{16 b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.35, size = 308, normalized size = 7.33 \[ -\frac {{\left (2 \, \cos \left (2 \, b x + 2 \, a\right ) + 1\right )} \sin \left (8 \, b x + 8 \, a\right ) + 2 \, {\left (2 \, \cos \left (2 \, b x + 2 \, a\right ) + 1\right )} \sin \left (6 \, b x + 6 \, a\right ) - 2 \, \cos \left (8 \, b x + 8 \, a\right ) \sin \left (2 \, b x + 2 \, a\right ) - 4 \, \cos \left (6 \, b x + 6 \, a\right ) \sin \left (2 \, b x + 2 \, a\right )}{3 \, {\left (b \cos \left (8 \, b x + 8 \, a\right )^{2} + 4 \, b \cos \left (6 \, b x + 6 \, a\right )^{2} + 4 \, b \cos \left (2 \, b x + 2 \, a\right )^{2} + b \sin \left (8 \, b x + 8 \, a\right )^{2} + 4 \, b \sin \left (6 \, b x + 6 \, a\right )^{2} - 8 \, b \sin \left (6 \, b x + 6 \, a\right ) \sin \left (2 \, b x + 2 \, a\right ) + 4 \, b \sin \left (2 \, b x + 2 \, a\right )^{2} + 2 \, {\left (2 \, b \cos \left (6 \, b x + 6 \, a\right ) - 2 \, b \cos \left (2 \, b x + 2 \, a\right ) - b\right )} \cos \left (8 \, b x + 8 \, a\right ) - 4 \, {\left (2 \, b \cos \left (2 \, b x + 2 \, a\right ) + b\right )} \cos \left (6 \, b x + 6 \, a\right ) + 4 \, b \cos \left (2 \, b x + 2 \, a\right ) + 4 \, {\left (b \sin \left (6 \, b x + 6 \, a\right ) - b \sin \left (2 \, b x + 2 \, a\right )\right )} \sin \left (8 \, b x + 8 \, a\right ) + b\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.13, size = 33, normalized size = 0.79 \[ \frac {{\mathrm {tan}\left (a+b\,x\right )}^4+6\,{\mathrm {tan}\left (a+b\,x\right )}^2-3}{48\,b\,\mathrm {tan}\left (a+b\,x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________